<template>
	<view class="success-content">
		<image classs='img1' src="@/static/pay/success.png"></image>
		<view class="btn">
			<button @click='goHome'>返回首页</button>
			<button @click='goSend'>查看订单</button>
		</view>
	</view>
</template>

<script>
	export default{
		methods:{
			goHome(){
				uni.switchTab({
					url:'/pages/tab1/tab1'
				})
			},
			goSend(){
				uni.navigateTo({
					url: '/pages/tab4/view/order/all?id=2'
				})
			},
		}
	}
</script>

<style lang='scss'>
.success-content{
	width: 100%;
	box-sizing: border-box;
	padding-top: 10%;
	.img1{
		width: 100%;
		border: 1px solid red;
	}
	.btn{
		width: 95%;
		margin-left: 2.5%;
		margin-top: 100rpx;
		height: 70rpx;
		display: flex;
		button{
			width: 40%;
			line-height: 70rpx;
			letter-spacing: 3rpx;
			font-size: 30rpx;
			color: white;
			border-radius: 50rpx;
			background-image: linear-gradient(to right,#00BFFF,#1E90FF);
		}
	}
}
</style>
